package com.hyh.sso;

/**
 * 登录状态枚举
 *
 * @Author: heyuhua
 * @Date: 2021/1/8 16:59
 */
public enum LoginStatus {

    SUCCESS(1, "登录成功"), ING(0, "登录中"), FAIL(-1, "登录失败"),
    ERROR(-2, "登录异常"), CALLBACK_ERROR(-3, "登录回调异常"), ACCOUNT_LOCK(-4, "账户被锁定"),
    EXPIRE(-5,"登录用户已过期");
    /**
     * 登录状态码
     */
    private int code;
    /**
     * 登录状态消息
     */
    private String message;


    private LoginStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    }
